package com.yanjiali.service;

import com.yanjiali.model.R;
import com.yanjiali.model.req.ObtainTheSearchResultsByPaginationReq;
import com.yanjiali.model.req.SearchPromptReq;
import com.yanjiali.model.resp.ObtainTheSearchResultsByPaginationResp;
import com.yanjiali.model.resp.SearchPromptResp;
import org.springframework.stereotype.Service;

/**
 * @Package: com.yanjiali.service
 * @Author: yanjiali
 * @Created: 2025/4/17 21:31
 */
public interface SearchEngineService {
    /**
     * 分页获取搜索结果
     * @param obtainTheSearchResultsByPaginationReq
     * @return
     */
    R<ObtainTheSearchResultsByPaginationResp> ObtainTheSearchResultsByPagination(ObtainTheSearchResultsByPaginationReq obtainTheSearchResultsByPaginationReq);

    /**
     * 搜索补全
     * @param searchPromptReq
     * @return
     */
    R<SearchPromptResp> searchPrompt(SearchPromptReq searchPromptReq);

    /**
     * 移除索引库中对应id的数据
     * @param id
     * @return
     */
    R removeData(String id);
}
